export const addList = [{
  label: '通迅接入',
  value: 'RECV'
}, {
  label: '解包报文头',
  value: 'UNPACKHD'
},{
  label: '解包报文',
  value: 'UNPACK'
}, {
  label: '报文组包',
  value: 'PACK'
}, {
  label: '发送报文',
  value: 'SEND'
}, {
  label: '接出的异步应答',
  value: 'RCVASYNC'
}, {
  label: '设置返回属性',
  value: 'RETATTR'
}, {
  label: 'YFA调用',
  value: 'SNDYFA'
}, {
  label: '插件调用',
  value: 'EXTCALL'
}, {
  label: 'Rest服务调用',
  value: 'RESTCALL'
}, {
  label: 'RestIP调用',
  value: 'RESTIPCALL'
}]

export const formMap = {
  RECV: [{
    label: '项目编号',
    key: 'systemId',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '服务名称',
    key: 'group',
    type: 'select',
    dicDataKey: 'groupList',
    dicOptionKey: 'code'
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '同步字段名',
    key: 'recvField',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '所属容器',
    key: 'inDict',
    maxlength: 50,
    showWordLimit: true,
  }],
  UNPACKHD: [{
    label: '项目编号',
    key: 'systemId',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '服务名称',
    key: 'group',
    type: 'select',
    dicDataKey: 'groupList',
    dicOptionKey: 'code'
  }, {
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }],
  UNPACK: [{
    label: '项目编号',
    key: 'systemId',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '服务名称',
    key: 'group',
    type: 'select',
    dicDataKey: 'groupAndOutList',
    dicOptionKey: 'code'
  }, {
    label: '交易码',
    key: 'transCode',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }],
  PACK: [{
    label: '项目编号',
    key: 'systemId',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '服务名称',
    key: 'group',
    type: 'select',
    dicDataKey: 'groupAndOutList',
    dicOptionKey: 'code'
  }, {
    label: '交易码',
    key: 'transCode',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }],
  SEND: [{
    label: '项目编号',
    key: 'systemId',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '服务名称',
    key: 'group',
    type: 'select',
    dicDataKey: 'groupAndOutList',
    dicOptionKey: 'code'
  }, {
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '同步字段名',
    key: 'recvField',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '所属容器',
    key: 'inDict',
    maxlength: 50,
    showWordLimit: true,
  }],
  RCVASYNC: [{
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '同步字段名',
    key: 'recvField',
    maxlength: 20,
    showWordLimit: true,
  }],
  RETATTR: [{
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }],
  SNDYFA: [{
    label: 'YFA应用',
    key: 'group',
    maxlength: 100,
    showWordLimit: true,
  }, {
    label: 'YFA交易码',
    key: 'transCode',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }],
  EXTCALL: [{
    label: '类名',
    key: 'systemId',
    rules: [{ required: true, message: '类名不能为空', trigger: 'blur' }]
  }, {
    label: '方法名',
    key: 'group',
    rules: [{ required: true, message: '方法名不能为空', trigger: 'blur' }]
  }, {
    label: '交易码',
    key: 'transCode',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }],
  RESTCALL:[{
    label: '服务名',
    key: 'serviceName',
    type: 'select',
    dicDataKey: 'servicesList',
    dicOptionKey: 'code',
    rules: [{ required: true, message: '服务名为空', trigger: 'blur' }]
  }, {
    label: '请求路径',
    key: 'reqUrl',
    rules: [{ required: true, message: '请求路径不能为空', trigger: 'blur' }]
  },{
    label: '请求方式',
    key: 'methodType',
    type: 'select',
    dicDataKey: 'methodTypeList',
    dicOptionKey: 'code',
    rules: [{ required: true, message: '请求方式不能为空', trigger: 'blur' }]
  }, {
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }],
  RESTIPCALL:[{
    label: '请求路径',
    key: 'reqUrl',
    rules: [{ required: true, message: '请求路径不能为空', trigger: 'blur' }]
  },{
    label: '请求方式',
    key: 'methodType',
    type: 'select',
    dicDataKey: 'methodTypeList',
    dicOptionKey: 'code',
    rules: [{ required: true, message: '请求方式不能为空', trigger: 'blur' }]
  }, {
    label: '输入变量名',
    key: 'inParam',
    maxlength: 20,
    showWordLimit: true,
  }, {
    label: '输出变量名',
    key: 'outParam',
    maxlength: 20,
    showWordLimit: true,
  }]
}
